package com.ch04a;

public class VegetableTest {
	public static void main(String args[]) {
		Vegetable potato = new Potato();
		Vegetable tomato = new Tomato();
		//Vegetable veg = new Vegetable();  //Not allowed since Vegetable is abstract
		potato.grow();
		potato.cook();
		tomato.grow();
		tomato.cook();
		System.out.println("-----------");
	    //tomato = potato;
		//tomato.grow();
		//tomato.cook();
	    
	}
}
